<template>
  <!-- 个人中心 -->
  <div>
    <div>
      <div style="display: flex;width: 940px;margin: auto;" class="personalDetails">
        <div style="display: flex;justify-content: space-between; ">
          <img style="width: 80px;height: 80px;object-fit: contain;cursor: pointer;background-color: #00000033;"
            :src="agentInfo.image ? agentInfo.image : 'https://pic.bangbangtongcheng.com/static/my/header.png'" />
          <div
            style="display: flex;flex-direction: column;color: #333;width: 400px;justify-content: space-between;padding: 4px 10px;">
            <div style="font-size: 24px;font-weight: 600;">{{ agentInfo.name || '未命名用户' }}</div>
            <div class="vip-level" style="margin-top: 12px;"
              :style="{ backgroundColor: $store.state.colors[agentInfo.memberLevel - 1].bgColor, color: $store.state.colors[agentInfo.memberLevel - 1].wordColor, borderColor: $store.state.colors[agentInfo.memberLevel - 1].lineColor, }">
              {{ $store.state.colors[agentInfo.memberLevel - 1].level }}</div>
            <div style="display: flex;"></div>
          </div>
          <div style="display: flex;width: 100px;justify-content: space-between;cursor: pointer;"></div>
        </div>
        <div class="personalDetails_right">
          <div class="right_item" style="margin-bottom: 15px" @click="companyDeilta(agentInfo.shopId)"
            v-if="agentInfo.businessType != ''">
            我的公司
            <img class="you_img" src="../../../../assets/bbcz/tpxqy01.png" />
          </div>
          <div class="right_item" @click="weiguiClick(agentInfo.id)">
            违规次数
            <span class="right_item_span">{{
              agentInfo.violation || 0
            }}</span>
            <img class="you_img" src="../../../../assets/bbcz/tpxqy01.png" />
          </div>
        </div>

      </div>
      <div>
        <div class="bottom">
          <div class="titLiat">
            <div @click="titClick(index)" :class="xuanzhong == index ? 'li cur' : 'li'" v-for="(item, index) in list"
              :key="index">
              <p>{{ item.name }}</p>
              <img v-if="index == xuanzhong" src="../../../../assets/xuanzhong.png" />
            </div>
          </div>
        </div>
        <div class="list" v-if="xuanzhong != 4">
          <div class="li" v-for="(item, index) in houseList" :key="index">
            <img class="biao" @click="details(item)"
              :src="item.display_diagram ? item.display_diagram : $img + item.houseImageDiv" />
            <div class="name">
              <div class="t_1" @click="details(item)">{{ item.title }}</div>
              <div class="t_2">
                <span style="margin-right: 5px">{{ item.region }}</span>
                <span>{{ item.address }}</span>
              </div>
              <div class="t_3">
                <span style="margin-right: 16px">{{ item.house_type }}</span>
                <span style="margin-right: 16px">{{ item.AREA }}m²</span>
                <span>{{ item.foors }}</span>
              </div>
              <div class="t_4">
                <img style="border-radius: 31px;"
                  :src="item.image ? item.image : 'https://pic.bangbangtongcheng.com/static/my/header.png'" />
                <span>{{ item.nikeName || '未命名用户' }}</span>
                <div style="cursor: pointer;" @click="shopdetails(item)">{{ item.shop_name }}</div>
              </div>
            </div>
            <div class="qian" v-if="item.transaction_type == 2">
              <p class="p1">{{ item.price }}万</p>
              <p class="p2">{{ (item.price * 10000 / item.AREA).toFixed(2) }}元/m²</p>
            </div>
            <div class="qian" v-else>
              <p class="p1">{{ item.price }}元/月</p>
            </div>
          </div>
        </div>


      </div>
      <div v-if="xuanzhong == 4">
        <!-- 帮友圈 -->
        <template v-for="s in ceshiArr">
          <friend-item :item="s" types="3" :wrapWidth="940" :showCollect="false" :forbidClick="true" @reData="getMoreData"
            :key="s.id"></friend-item>
        </template>


      </div>


      <div class="li" v-if="housetotal == 0" style="width: 100%; height: 400px">
        <el-empty description="还没有发布过房子" v-if="xuanzhong == 0"></el-empty>
        <el-empty description="还没有发布过二手房" v-if="xuanzhong == 1"></el-empty>
        <el-empty description="还没有发布过新房" v-if="xuanzhong == 2"></el-empty>
        <el-empty description="还没有发布过出租房" v-if="xuanzhong == 3"></el-empty>
        <el-empty description="还没有发布过帮友圈" v-if="xuanzhong == 4"></el-empty>
      </div>
      <div class="fenye">
        <el-pagination background layout="prev, pager, next" :total="housetotal" :page-size="housePage.pageSize"
          :current-change="housePage.pageNo" @current-change="currenthouse"></el-pagination>
      </div>
    </div>

    <inform ref="inform" :bUserId="bUserId"></inform>
  </div>
</template>
<script>
import inform from "../../../index/inform";
import friendItem from "../../../index/comp/bbcz-friend-circle-item.vue";
export default {
  components: {

    inform,
    friendItem,
  },

  data() {
    return {
      bUserId: "",
      agentInfo: {},
      disa: true,
      phonestate: false,

      list: [
        { num: 0, name: "全部" },
        { num: 1, name: "二手房" },
        { num: 2, name: "新房" },
        { num: 3, name: "出租房" },
      ],
      xuanzhong: 0,
      housePage: {
        pageSize: 4,
        pageNo: 1,
        userId: "",
        isLz: '0',
        examineStatus: '2',
        upStatus: '1',
      },
      houseList: [],
      housetotal: 0,
      loginstate: false,
      user: {},
      isCollection: 0,
      userInfo: {},
      ceshiArr: [],
    };
  },
  created() {
    this.init();
  },
  methods: {
    init(id) {
      // id=16&userId=887
      this.agentInfo.id = JSON.parse(localStorage.getItem("userInfo")).id;
      this.userId = JSON.parse(localStorage.getItem("userInfo")).id;
      this.housePage.userId = this.userId
      this.getUser();
      this.getUserInfoByUserId(this.userId);
      // this.housePage.userId = id
      this.getMoreData();
      // this.getHouseInfo()
    },
    details(item) {
      // vehicleType
      this.openUrl({
        path: "/index/newSourceDetails",
        query: {
          id: item.id,
          type: this.olds,
        },
      });
    },
    getUserInfoByUserId(id) {
      this.$getHttp('/mob/user/getUserInfoByUserId', { id: id }).then((e) => {
        if (e.code == 200) {
          let userinfo = e.userInfo
          if (userinfo.isAgent == 1 || userinfo.isShop == 1) {
            userinfo.scoreAvg = e.scoreAvg
          }
          // if (!userinfo.hasOwnProperty("userName")) {
          //   userinfo.name = userinfo.nikeName;
          // }else{
          // 	userinfo.name = userinfo.nikeName
          // }
          userinfo.name = userinfo.nikeName
          this.agentInfo = userinfo
        }
      })
    },
    getMoreData() {
      if (this.xuanzhong == 0) {
        this.getHouseInfo();
      } else if (this.xuanzhong == 1) {
        this.getHouseInfo();
      } else if (this.xuanzhong == 2) {
        this.getHouseInfo();
      } else if (this.xuanzhong == 3) {
        this.getHouseInfo();
      } else if (this.xuanzhong == 4) {
        this.getByq();
      }
    },
    getPers(userId, vehicleType) {
      this.$getHttp("/api/mobile/vehicleOwner/getVehicleInformation", {
        ...this.housePage,
        userId,
        vehicleType,
      }).then((res) => {
        if (res.code == 200) {
          this.houseList = res.vehicleInformation.pageList;
          this.housetotal = res.vehicleInformation.pageCount;
        }
      });
    },
    getByq() {
      this.$getHttp(
        "/api/mobile/vehicleOwner/getHelpingFriendsCircleByPublisher",
        { ...this.housePage, publisherId: this.userId, businessType: 1 }
      ).then((res) => {
        if (res.code == 200) {
          res.helpingFriendsCircleList.pageList.forEach((item) => {
            item.chage = 0;
            item.picture = this.manageImg(item.picture);
            item.imageList = this.manageImg(item.picture);
            item.video = this.manageImg(item.video);
          });
          this.ceshiArr = res.helpingFriendsCircleList.pageList;
          this.housetotal = res.helpingFriendsCircleList.pageCount;
        }
      });
    },
    titClick(index) {
      this.xuanzhong = index;
      switch (index) {
        case 0:
          delete this.housePage.transactionType
          delete this.housePage.newOld
          this.housePage.pageNo = 1

          break;
        case 1:
          this.housePage.transactionType = 2
          this.housePage.newOld = 2
          this.housePage.pageNo = 1

          break;
        case 2:
          this.housePage.transactionType = 2
          this.housePage.newOld = 1
          this.housePage.pageNo = 1
          break;
        case 3:
          delete this.housePage.newOld
          this.housePage.transactionType = 1
          this.housePage.pageNo = 1

          break;
      }
      this.getMoreData();
    },
    // 获取帮友圈数据
    friendsCircle() {
      let arr = [{ id: 1 }, { id: 2 }];
      arr.forEach((v) => {
        v.chage = 0;
      });
      this.ceshiArr = arr;
    },
    zhankaiClick(item) {
      this.ceshiArr.forEach((v) => {
        if (v.id == item.id) {
          if (v.chage == 0) {
            v.chage = 1;
          } else {
            v.chage = 0;
          }
        }
      });
    },
    rateChage(e) {
      if (this.loginstate) {
        this.disa = true;
        this.$postHttp("/mob/user/saveScoreInfo", {
          agentId: this.agentInfo.id,
          userId: this.user.id,
          score: e,
        }).then((data) => {
          if (data.code == 200) {
            this.$message({
              message: "评分成功！",
              type: "success",
              offset: 120,
              duration: 2000,
            });
            this.getUserInfoByUserId(this.$route.query.id);
          }
        });
      } else {
        this.$message({
          message: "请登录之后在进行评分",
          type: "error",
          offset: 120,
          duration: 2000,
        });
      }
    },
    getHouseInfo() {
      this.$getHttp("/mob/home/getHouseInfo", this.housePage).then((data) => {
        if (data.code == 200) {
          data.list.forEach((e) => {
            //判断该对象是否存在该属性
            if (e.hasOwnProperty("FLOOR")) {
              if (e.FLOOR.indexOf("|") == -1) {
                e.foors = "";
              } else {
                e.foors =
                  e.FLOOR.split("|")[0] +
                  "层/" +
                  "共" +
                  e.FLOOR.split("|")[1] +
                  "层";
              }
            }
            if (!e.hasOwnProperty("shop_name")) {
              e.shop_name = "个人房源";
            }
          });
          this.houseList = data.list;
          this.housetotal = data.count;
        }
      });
    },
    getUser() {
      let user = JSON.parse(localStorage.getItem("userInfo"));
      if (user != null) {
        this.loginstate = true;
        this.user = user;
        this.$getHttp("/mob/user/getIsCollection", {
          userId: user.id,
          cbType: 3,
          type: 1,
          relationId: this.$route.query.id,
        }).then((data) => {
          if (data.code == 200) {
            this.isCollection = data.isCollection;
          }
        });

      } else {
        this.loginstate = false;
      }
    },
    currenthouse(e) {
      this.scrollToElement(document.querySelector(".bottom"))
      this.housePage.pageNo = e;
      this.getMoreData();
    },
    // 他的公司
    companyDeilta(storeId) {
      // console.log('storeIdstoreIdstoreIdstoreId',storeId);
      // return
      const routeLink = this.$router.resolve({
        path: "/index/ShopDetails?id=" + storeId,
      });
      window.open(routeLink.href, "_self");
    },
    // 违规次数
    weiguiClick(userId) {
      this.bUserId = userId;
      setTimeout(() => {
        this.$refs.inform.getReportMyRecord();
      }, 100);
    },

    // 关注
    collect(item, flag) {
      if (this.loginstate) {
        this.$postHttp(
          "/api/mobile/vehicleOwner/collectionOrCancelCollection",
          {
            collectorId: JSON.parse(localStorage.getItem("userInfo")).id,
            collectionType: "3",
            relationId: item.id,
            id:
              item.collectionAttention && item.collectionAttention.id
                ? item.collectionAttention.id
                : "",
          }
        ).then((data) => {
          if (data.code == 200) {
            this.getMoreData();
            this.$message({
              message: data.msg,
              type: "success",
              offset: 120,
              duration: 2000,
            });
          }
        });
      } else {
        this.$message({
          message: "请登录之后在收藏个人！",
          type: "error",
          offset: 120,
          duration: 2000,
        });
      }
    },
    goLike(item, flag) {
      if (this.loginstate) {
        // 去点赞
        var obj = {
          userId: JSON.parse(localStorage.getItem("userInfo")).id,
          circleId: item.id,
        };
        item.likeRecord && item.likeRecord.id
          ? (obj.id = item.likeRecord.id)
          : "";
        this.$postHttp("/api/mobile/vehicleOwner/upperOrCancelThumb", {
          // id: item.id,
          ...obj,
        }).then((data) => {
          if (data.code == 200) {
            this.getMoreData();
            this.$message({
              message: data.msg,
              type: "success",
              offset: 120,
              duration: 2000,
            });
          }
        });
      } else {
        this.$message({
          message: "请登录之后在收藏个人！",
          type: "error",
          offset: 120,
          duration: 2000,
        });
      }
    },
  },
};
</script>
<style lang="less" scoped>
.boxbox {
  position: relative;
  padding-bottom: 200px;
}

.con {
  display: inline-block;
  box-sizing: border-box;
  vertical-align: top;
  width: 940px;
  color: #333;

  .personalDetails {
    box-sizing: border-box;
    padding: 28px 80px 23px 40px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .personalDetails_left {
      display: flex;
      align-items: center;

      .user_img {
        width: 76px;
        height: 76px;
        border-radius: 76px;
        margin-right: 32px;
      }

      .user_xx {
        .user_name {
          font-size: 20px;
          font-weight: 400;
          color: #333333;
          margin-bottom: 8px;
        }
      }
    }

    .personalDetails_right {
      .right_item {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        font-size: 16px;
        font-weight: 400;
        color: #333333;

        .you_img {
          width: 18px;
          height: 20px;
          margin-left: 8px;
        }

        .right_item_span {
          font-size: 24px;
          font-weight: 600;
          color: #e00000;
          margin: 0 5px;
        }
      }
    }
  }

  .bottom {
    width: 100%;
    color: #333333;
    margin-top: 0px;

    .titLiat {
      width: 100%;
      margin-top: 40px;
      margin-bottom: 15px;

      .li {
        display: inline-block;
        vertical-align: top;
        margin-right: 40px;
        color: #333;
        cursor: pointer;
        transform-origin: left;

        p {
          font-size: 26px;
        }

        img {
          width: 32px;
          height: 16px;
          margin-left: 50%;
          transform: translateX(-50%);
          margin-top: -8px;
        }
      }

      .cur {
        color: #64b6a8;
        border: 0;
        transform: scale(1.1);
      }
    }

    .tit {
      font-weight: 600;
      font-size: 32px;
      margin-bottom: 24px;
    }

    .list {
      width: 100%;

      .li {
        position: relative;
        padding-bottom: 24px;
        margin-bottom: 24px;
        border-bottom: 1px solid #e0e0e0;

        .biao {
          width: 300px;
          height: 200px;
        }

        .name {
          display: inline-block;
          vertical-align: top;
          margin-left: 24px;
          position: relative;
          height: 200px;
          width: 480px;

          .t_1 {
            color: #333;
            font-size: 26px;
            cursor: pointer;
          }

          .t_2 {
            font-size: 18px;
            color: #666666;
            margin-top: 12px;
          }

          .t_3 {
            font-size: 18px;
            color: #666666;
            margin-top: 12px;
          }

          .t_4 {
            position: absolute;
            font-size: 18px;
            color: #666666;
            bottom: 0;
            left: 0;
            white-space: nowrap;

            img {
              width: 31px;
              height: 31px;
            }

            div {
              display: inline-block;
              width: 90px;
              height: 30px;
              background: #ffffff;
              border: 1px solid #64b6a8;
              border-radius: 4px;
              text-align: center;
              line-height: 30px;
              margin-left: 24px;
              color: #64b6a8;
            }
          }
        }

        .qian {
          position: absolute;
          top: 62px;
          right: 0;

          .p1 {
            //width: 120px;
            font-size: 32px;
            color: #e00000;
            text-align: center;
          }

          .p2 {
            //width: 120px;
            font-size: 18px;
            color: #333333;
            text-align: center;
          }
        }
      }
    }
  }

  .helpFriends {
    width: 100%;
    margin: 0 auto;
    margin-top: 50px;

    .helpFriends_title {
      display: flex;
      align-items: center;
      justify-content: space-between;

      .helpFriends_title_left {
        display: flex;
        align-items: center;

        .helpFriends_title_left_img {
          width: 112px;
          height: 112px;
        }

        .helpFriends_title_left_span {
          font-size: 36px;
          font-weight: 400;
          color: #333333;
          margin-left: 40px;
        }
      }

      .helpFriends_title_right {
        display: flex;
        justify-content: space-between;
        cursor: pointer;
      }
    }

    .helpFriends_article {
      margin-top: 34px;

      .helpFriends_article_text {
        font-size: 26px;
        font-weight: 500;
        color: #333333;
        line-height: 30px;
      }

      .helpFriends_article_active {
        font-size: 26px;
        font-weight: 500;
        color: #333333;
        line-height: 30px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
      }

      .unfold {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        font-size: 26px;
        font-weight: 400;
        color: #64b6a8;

        span {
          cursor: pointer;
        }

        .unfold_img {
          width: 20px;
          height: 20px;
          cursor: pointer;
        }
      }

      .unfold_yc {
        display: none;
      }
    }

    .img_one {
      width: 100%;
      height: 290px;
      margin-top: 30px;

      img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        border-radius: 8px;
      }
    }

    .img_two {
      width: 100%;
      height: 290px;
      display: flex;
      justify-content: space-between;
      margin-top: 30px;

      img {
        object-fit: cover;
        width: 48%;
        height: 100%;
        border-radius: 8px;

      }
    }

    .img_three {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      margin-top: 30px;

      img {
        object-fit: cover;
        width: 30%;
        height: 100%;
        border-radius: 8px;
        margin-bottom: 20px;
      }
    }

    .video {
      width: 100%;
      height: 290px;
      margin-top: 30px;

      video {
        width: 100%;
        height: 100%;
        border-radius: 8px;
      }
    }

    .byq_bottom {
      display: flex;
      justify-content: space-between;
      margin-top: 30px;
      align-items: center;

      .byq_bottom_right {
        display: flex;
        align-items: center;

        .byq_bottom_right_item {
          display: flex;
          align-items: center;
          font-size: 26px;
          font-weight: 400;
          color: #333333;
          margin-right: 35px;

          .byq_bottom_right_item_img {
            width: 30px;
            height: 30px;
            margin-right: 10px;
          }
        }
      }
    }
  }
}

.gerenBox {
  width: 1200px;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: 32px;
  margin-bottom: 45px;

  .geren {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    width: 240px;
    min-height: 820px;
    margin-right: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;

    img {
      width: 110px;
      height: 110px;
      border-radius: 50%;
      margin-top: 40px;
      margin-left: 65px;
    }

    p {
      width: 100%;
      text-align: center;
      font-size: 18px;
      color: #333333;
      margin-top: 12px;
      margin-bottom: 40px;
    }

    .list {
      position: relative;
      width: 100%;

      .li {
        width: 209px;
        height: 50px;
        line-height: 50px;
        margin-left: 30px;
        text-indent: 40px;
        font-size: 18px;
        color: #333;
        border-radius: 25px 0 0 25px;
        cursor: pointer;
      }

      .xuan {
        background-color: #64b6a8;
        color: #fff;
      }
    }

    .kuai {
      width: 100%;
      height: 6px;
      background-color: #64b6a8;
      position: absolute;
      bottom: 0;
    }
  }
}

.fenye {
  width: 100%;
  height: 50px;
  text-align: center;
  margin: 60px 0px;

  /deep/.el-pagination.is-background .el-pager li:not(.disabled).active {
    background-color: #64b6a8;
  }
}

.helpFriends {
  width: 1200px;
  margin: 0 auto;
  margin-top: 50px;

  .helpFriends_title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .helpFriends_title_left {
      display: flex;
      align-items: center;

      .helpFriends_title_left_img {
        width: 112px;
        height: 112px;
      }

      .helpFriends_title_left_span {
        font-size: 36px;
        font-weight: 400;
        color: #333333;
        margin-left: 40px;
      }
    }

    .helpFriends_title_right {
      display: flex;
      justify-content: space-between;
      cursor: pointer;
    }
  }

  .helpFriends_article {
    margin-top: 34px;

    .helpFriends_article_text {
      font-size: 26px;
      font-weight: 500;
      color: #333333;
      line-height: 30px;
    }

    .helpFriends_article_active {
      font-size: 26px;
      font-weight: 500;
      color: #333333;
      line-height: 30px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 4;
    }

    .unfold {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      font-size: 26px;
      font-weight: 400;
      color: #64b6a8;

      span {
        cursor: pointer;
      }

      .unfold_img {
        width: 20px;
        height: 20px;
        cursor: pointer;
      }
    }

    .unfold_yc {
      display: none;
    }
  }

  .img_one {
    width: 100%;
    height: 290px;
    margin-top: 30px;

    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
      border-radius: 8px;
    }
  }

  .img_two {
    width: 100%;
    height: 290px;
    display: flex;
    justify-content: space-between;
    margin-top: 30px;

    img {
      object-fit: cover;
      width: 48%;
      height: 100%;
      border-radius: 8px;
    }
  }

  .img_three {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;

    img {
      object-fit: cover;
      width: 30%;
      height: 100%;
      border-radius: 8px;
      margin-bottom: 20px;
    }
  }

  .video {
    width: 100%;
    height: 290px;
    margin-top: 30px;

    video {
      width: 100%;
      height: 100%;
      border-radius: 8px;
    }
  }

  .byq_bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    align-items: center;

    .byq_bottom_right {
      display: flex;
      align-items: center;

      .byq_bottom_right_item {
        display: flex;
        align-items: center;
        font-size: 26px;
        font-weight: 400;
        color: #333333;
        margin-right: 35px;

        .byq_bottom_right_item_img {
          width: 30px;
          height: 30px;
          margin-right: 10px;
        }
      }
    }
  }
}

.list {
  width: 960px;
  margin: auto;

  .li {
    position: relative;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;

    .biao {
      width: 300px;
      height: 200px;
      object-fit: contain;
      cursor: pointer;
    }

    .name {
      display: inline-block;
      vertical-align: top;
      margin-left: 24px;
      position: relative;
      height: 200px;
      width: 480px;

      .t_1 {
        color: #333;
        font-size: 26px;
        cursor: pointer;
      }

      .t_2 {
        font-size: 18px;
        color: #666666;
        margin-top: 12px;
      }

      .t_3 {
        font-size: 18px;
        color: #666666;
        margin-top: 12px;
      }

      .t_4 {
        position: absolute;
        font-size: 18px;
        color: #666666;
        bottom: 0;
        left: 0;
        white-space: nowrap;

        img {
          width: 31px;
          height: 31px;
        }

        div {
          display: inline-block;
          /* width: 90px; */
          height: 30px;
          background: #ffffff;
          border: 1px solid #64b6a8;
          border-radius: 4px;
          text-align: center;
          line-height: 30px;
          margin-left: 24px;
          color: #64b6a8;
        }
      }
    }

    .qian {
      position: absolute;
      top: 62px;
      right: 0;

      .p1 {
        //width: 120px;
        font-size: 32px;
        color: #e00000;
        text-align: center;
      }

      .p2 {
        //width: 120px;
        font-size: 18px;
        color: #333333;
        text-align: center;
      }
    }
  }
}

.vip-level {
  width: 80px;
  text-align: center;
  padding: 4px 0;
  border: 1px solid;
  border-radius: 4px 4px 4px 4px;
}

.personalDetails_right {
  .right_item {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 16px;
    font-weight: 400;
    color: #333333;

    .you_img {
      width: 18px;
      height: 20px;
      margin-left: 8px;
    }

    .right_item_span {
      font-size: 24px;
      font-weight: 600;
      color: #e00000;
      margin: 0 5px;
    }
  }
}</style>